﻿using Dynamic.Core.Types;

namespace Dynamic.Core.Generation.T4
{
    public partial class GeneratorMetadataEntity
    {
        private Table table;
        private Setting setting;
        private Column pk = new Column();

        /// <summary>
        /// 文本转化
        /// </summary>
        /// <param name="table"></param>
        /// <param name="setting"></param>
        /// <returns></returns>
        public string TransformText(Table table, Setting setting)
        {
            this.table = table;
            this.setting = setting;
            return this.TransformText();
        }

        /// <summary>
        /// 表
        /// </summary>
        public Table Table
        {
            get
            {
                return table;
            }
            set
            {
                table = value;
            }
        }

        /// <summary>
        /// 设置
        /// </summary>
        public Setting Setting
        {
            get
            {
                return setting;
            }
            set
            {
                setting = value;
            }
        }
    }
}
